$OpenBSD: patch-track_c,v 1.3 2015/11/20 11:57:19 sthen Exp $
--- track.c.orig	Thu Nov 19 18:38:24 2015
+++ track.c	Thu Nov 19 18:39:44 2015
@@ -6,7 +6,11 @@
  *    This program is published under the GNU Public license
  */
 #ifdef MOTION_V4L2
+#if defined(HAVE_LINUX_VIDEODEV_H)
 #include <linux/videodev2.h>
+#elif defined(HAVE_SYS_VIDEOIO_H)
+#include <sys/videoio.h>
+#endif
 #endif /* MOTION_V4L2 */
 #include <math.h>
 #include "motion.h"
